<?php

$id = $_GET['id'];

$oldData =  file_get_contents('./db/data.txt');

$oldData = json_decode($oldData,true);

$data = $oldData[$id];

include './template/edit.html';

var_dump($data);